package models

import "time"

var (
	MatchCollegeBatch                map[int]string
	MatchCollegeIsTest               map[int]string
	MatchCollegeType                 map[int]string
	MatchCollegeIsBuyEnsureAdmission map[int]string
)

// 考生院校匹配结果
type MatchCollege struct {
	Id                       int64     `xorm:"pk autoincr" json:"matchCollegeId"`
	UserId                   int64     `xorm:"comment('用户id')" json:"-"`
	CollegeId                int64     `xorm:"comment('院校id')" json:"-"`
	MatchType                int       `xorm:"comment('类型 0未知 1普招类 2单招类 3艺术类')" json:"-"`
	IsTest                   int       `xorm:"comment('高考是否结束 0高考前 1高考后')" json:"-"`
	IsBuyEnsureAdmission     int       `xorm:"comment('是否购买保录计划 0未购买 1已购买')" json:"-"`
	Year                     int       `xorm:"comment('年份')" json:"matchCollegeYear"`
	Score                    int       `xorm:"comment('分数')" json:"matchCollegeScore"`
	IsRecommend              int       `xorm:"comment('是否专家推荐 0不是 1是')" json:"matchCollegeIsRecommend"`
	Created                  time.Time `xorm:"created comment('创建时间')" json:"-"`
	Deleted                  time.Time `xorm:"deleted comment('删除时间')" json:"-"`
	CreatedShow              string    `xorm:"-" json:"matchCollegeCreatedShow"`
	MatchTypeShow            string    `xorm:"-" json:"matchCollegeTypeShow"`
	IsTestShow               string    `xorm:"-" json:"matchCollegeIsTestShow"`
	IsBuyEnsureAdmissionShow string    `xorm:"-" json:"matchCollegeIsBuyEnsureAdmissionShow"`
	BatchShow                string    `xorm:"-" json:"matchCollegeBatchShow"`
}

func init() {
	MatchCollegeIsTest = map[int]string{
		0: "高考前",
		1: "高考后",
	}

	MatchCollegeType = map[int]string{
		0: "未知",
		1: "普招类",
		2: "单招类",
		3: "艺术类",
	}

	MatchCollegeIsBuyEnsureAdmission = map[int]string{
		0: "未购买",
		1: "已购买",
	}

	MatchCollegeBatch = map[int]string{
		0: "未知",
		1: "本科一批",
		2: "本科二批",
		3: "高职高专批",
	}
}
